<?php include_once 'includes/header.php'; ?><div id="wrap"><div id="main"><div class="top"></div>
    <div id="mainarea"> 
      <script language="javascript" src="image/editor/editor_function.js"></script> 
      <script language="javascript" src="source/script_blog.js"></script>
      <h2 class="title"> 发表新帖子<span><a href="">返回群组</a></span></h2>
      <div class="c_form">
        <style>
	.userData {behavior:url(#default#userdata);}
</style>
        <form method="post" action="cp.jhtml?ac=thread&amp;eventid=0">
          <table cellspacing="4" cellpadding="4" width="100%" class="infotable">
            <tbody>
              <tr>
                <td><label>标题：</label><input type="text" class="t_input" id="subject" name="subject" value="" size="60"></td>
              </tr>
              <tr>
                <td><!-- <a id="doodleBox" href="magic.jhtml?mid=doodle&showid=blog_doodle&target=jchome-ttHtmlEditor&from=editor" style="display:none"></a> -->
                  
                  <textarea class="userData" name="message" id="jchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px"></textarea>
                  <iframe src="editor.jhtml?charset=UTF-8&amp;allowhtml=1&amp;doodle=1" name="jchome-ifrHtmlEditor" id="jchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe></td>
              </tr>
              <tr>
                <td><input type="checkbox" name="makefeed" id="makefeed" value="1" checked="">
                  产生动态 (<a href="cp.jhtml?ac=privacy#feed" target="_blank">更改默认设置</a>) </td>
              </tr>
            </tbody>
          </table>
          <input type="hidden" name="tid" value="">
          <input type="hidden" name="threadsubmit" value="true">
          <input type="button" id="threadbutton" name="threadbutton" value="提交发布" onclick="validate(this);" style="display: none;">
          <input type="hidden" name="topicid" value="">
          <input type="hidden" name="formhash" value="5e5eb8de">
        </form>
        <table cellspacing="4" cellpadding="4" width="100%" class="infotable">
          <tbody>
            <tr>
              <td><input type="button" name="clickbutton[]" value="上传图片" class="button white_btn" onclick="edit_album_show('pic')">
                <input type="button" name="clickbutton[]" value="插入图片" class="button white_btn" onclick="edit_album_show('album')"></td>
            </tr>
          </tbody>
        </table>
        <table cellspacing="4" cellpadding="4" width="100%" id="jchome-edit-pic" class="infotable" style="display:none;">
          <tbody>
            <tr>
              <td><strong>选择图片</strong>:
                <table summary="Upload" cellspacing="2" cellpadding="0">
                  <tbody id="attachbodyhidden" style="display:none">
                    <tr>
                      <td><form method="post" id="upload" action="cp.jhtml?ac=upload" enctype="multipart/form-data" target="uploadframe" style="background: transparent;">
                          <input type="file" name="attach" style="border: 1px solid #CCC;">
                          <span id="localfile"></span>
                          <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true">
                          <input type="hidden" name="albumid" id="albumid" value="0">
                          <input type="hidden" name="formhash" value="5e5eb8de">
                        </form></td>
                    </tr>
                  </tbody>
                  <tbody id="attachbody">
                    <tr>
                      <td><form method="post" id="upload_0" action="cp.jhtml?ac=upload" enctype="multipart/form-data" target="uploadframe" style="background: transparent;">
                          <input type="file" name="attach" style="border: 1px solid #CCC;" id="attach_0">
                          <span id="localfile_0"></span>
                          <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true">
                          <input type="hidden" name="albumid" id="albumid_0" value="0">
                          <input type="hidden" name="formhash" value="5e5eb8de">
                        </form></td>
                    </tr>
                  </tbody>
                </table>
                <strong>存储相册</strong>:
                <table cellspacing="2" cellpadding="0">
                  <tbody>
                    <tr>
                      <td><select name="albumid" id="uploadalbum" onchange="addSort(this)">
                          <option value="-1">请选择相册</option>
                          <!-- <option value="-1">默认相册</option> -->
                          
                          <option value="2416">我的相册2</option>
                          <option value="2145">我的相册</option>
                          <option value="addoption" style="color:red;">+新建相册</option>
                        </select>
                        <script src="source/script_upload.js" type="text/javascript"></script> 
                        <script src="source/jquery-1.4.4.min.js" type="text/javascript"></script>
                        <iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
          </tbody>
        </table>
        <table cellspacing="4" cellpadding="4" width="100%" class="infotable" id="jchome-edit-album" style="display:none;">
          <tbody>
            <tr>
              <td> 选择相册:
                <select name="view_albumid" onchange="picView(this.value)">
                  <option value="none">选择一个相册</option>
                  <!-- <option value="0">默认相册</option> -->
                  
                  <option value="2416">我的相册2</option>
                  <option value="2145">我的相册</option>
                </select>
                (点击图片可以插入到内容中)
                <div id="albumpic_body"></div></td>
            </tr>
          </tbody>
        </table>
        <table cellspacing="4" cellpadding="4" width="100%" class="infotable">
          <tbody>
            <tr>
              <td><input type="button" id="issuance" onclick="document.getElementById('threadbutton').click();" value="保存发布" class="submit"></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>


<div class="bot"></div>
</div>

<?php include_once 'includes/sidebar_group.php'; ?>
</div>
    <?php include_once 'includes/footer.php'; ?>